package cn.lili.controller.feign.order;

import cn.lili.modules.order.trade.client.OrderLogClient;
import cn.lili.modules.order.trade.entity.dos.OrderLog;
import cn.lili.modules.order.order.service.OrderLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author: ftyy
 * @date: 2022-01-13 17:37
 * @description: 订单日志Feign
 */
@RestController
public class OrderLogFeignController implements OrderLogClient {
  @Autowired private OrderLogService orderLogService;

  @Override
  public List<OrderLog> getOrderLog(String orderSn) {
    return orderLogService.getOrderLog(orderSn);
  }

  @Override
  public void saveBatch(List<OrderLog> orderLogs) {
    orderLogService.saveBatch(orderLogs);
  }
}
